package com.stkent.polygondrawingutildemo;

import com.stkent.polygondrawingutil.PolygonDrawingUtil;
import org.junit.Assert;
import org.junit.Test;

import static java.lang.Math.PI;

/**
 * PolygonDrawingUtilTestCase
 *
 * @since : 2021.5.24
 */
public class PolygonDrawingUtilTestCase {
    /**
     * testGetPercent
     */
    @Test
    public void testGetPercent() {
        PolygonDrawingUtil polygonDrawingUtil = new PolygonDrawingUtil();
        double result = polygonDrawingUtil.toRadians(20);
        Assert.assertNotNull(result);
        Assert.assertEquals(String.valueOf(result), 2 * PI * 20 / 360 + "");
    }
}
